package com.wangxiaoxuan.seckill.vo;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @author 王小轩
 * @version 1.0
 * 公共返回对象枚举
*/
@Getter
@ToString
@AllArgsConstructor
public enum  ResBeanEnum {
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务端异常"),
    LOGIN_ERROR(600,"用户名或密码有误"),
    BIND_ERROR(700,"参数校验异常"),
    //秒杀
    EMPTY_STOCK(521,"被抢光了，下次手快点哦"),
    REPEAT_ERROR(520,"你已经抢过了给别人点机会")
    ;

    private final Integer code;
    private final String message;

}
